package com.baseframe.advert.controller;

import com.baseframe.advert.service.SnsAdvertService;
import com.baseframe.tool.result.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/front/advert")
@AllArgsConstructor
public class FrontSnsAdvertController {

    private SnsAdvertService snsAdvertService;

    /**
     * 获取广告信息列表
     *
     * @return 返回广告信息列表
     */
    @GetMapping("/list")
    public R<Object> getAdvertList() {
        return R.data(snsAdvertService.list());
    }
}
